#define _CRT_SECURE_NO_WARNINGS 520
#include<stdio.h>
#include<string.h>


int myself_strlen(char* arr)
{
	int count = 0;
	char* p = arr;
	while (*p != '\0')
	{
		p++;
		count++;
	}
	return count;
}


int main()
{
	char arr[50] = { 0 };
	scanf("%s", arr);
	int count = myself_strlen(arr);
	printf("%d", count);
	return 0;
}